<?php

if(!empty($_POST['email'])
	&& !empty($_POST['pass'])){

 if(strpos($_POST['email'], '@') === FALSE
        || strpos($_POST['email'], '.') === FALSE ){
        echo "<h1>INVALID EMAIL</h1>";
        echo "<a href = login.php'>Restart Registration</a>";
        exit;
    }

else{

?>



<html>
<head>
	<title>Login</title>
</head>


<body>


	<table border = '1' cellpadding = '6' cellspacing = '4' width = '6'>
<tr>
<td colspan = '5' align = center>
<h1>Log In</h1>
</td>
</tr>


		<form method = "post" action = '<?php $_SERVER['PHP_SELF']; ?>'>

		<tr>
		<td>
		Email
		</td>
			<td>
			<input type= 'text' name='email'/>
			<colspan >
			<font size= '1'><i>example@domain.extension</i></font>			
			</colspan>		
			</td>
		</tr>

		<tr>
		<td>
		Password
		</td>
			<td>
			<input type= 'password' name='pass'/>
			</td>
		</tr>
		
		<tr>
		<td colspan='5' align= 'center'>
		<input type = 'submit' name='log' value='log In'/>
		</td>
		</tr>

		</form>
		</table>





</body>

</html>

